<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width = device-width, initial-scale = 1.0, maximum-scale=1.0, user-scalable = no">
    <title>小雨投资</title>
    <meta name="robots" content="index,follow"/>
    <meta http-equiv="Site-Enter" content="blendTrans(Duration=0.5)"/>
    <link rel="stylesheet" href="__css__/mui.min.css" type="text/css" media="screen, projection"/>
    <link rel="stylesheet" type="text/css" href="__css__/css.css"/>
    <script language="javascript" type="text/javascript" src="//js.users.51.la/19337084.js"></script>
    <script src="__js__/jquery.min.js"></script>
    <script src="__js__/mui.min.js"></script>
    <script>
        //获取邀请码
        function GetQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]);
            return null;
        }
        // 邀请码
        var inv = GetQueryString("u");

        //判断手机、PC
        function IsPC() {
            var userAgentInfo = navigator.userAgent;
            var Agents = ["Android", "iPhone",
                "SymbianOS", "Windows Phone",
                "iPad", "iPod"];
            var flag = true;
            for (var v = 0; v < Agents.length; v++) {
                if (userAgentInfo.indexOf(Agents[v]) > 0) {
                    flag = false;
                    break;
                }
            }
            return flag;
        }

        var flag = IsPC();

        if (flag) {
//            window.location.href = "https://www.51jingang.com/?user&q=reginvite&u=" + inv;
        }
    </script>
</head>
<body>
<div class="h5a">
    <img src="__images__/reg_a01.png"/>
    <div class="h5a_cont">
        <input type="text" id="phone" placeholder="请输入您的手机号码"/>
        <button type="button" class="h5_bnt">立即领取</button>
    </div>
    <img src="__images__/reg_a02.png"/>
</div>
<script>
    $(function () {
        $('.h5_bnt').click(function () {
            var phone = $('#phone').val();
            if (phone == '') {
                mui.alert('请输入手机号码');
                return false;
            }
            var pattern = /^1[3|4|5|6|7|8|9]\d{9}$/;
            if (!pattern.exec(phone)) {
                mui.alert('手机号码格式有误');
                return false;
            }
            var url = "{:url('login/index1')}" + '?phone=' + phone;
            if (inv != '') {
                url += '&inviter='+inv;
            }
            window.location.href = url;
        })
    })
</script>
<style>
    body>a{
        display: none;
    }
</style>
</body>
</html>
